package com.bocloud.cmp.server.controller.resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.bocloud.cmp.interfaces.resource.StatisticService;
import com.bocloud.common.model.BsmResult;

/**
 * 资源统计相关接口
 * 
 * @author song song
 * @since 2017.2.27
 *
 */
@RestController
@RequestMapping("/statistic")
public class StatisticController {

	@Autowired
	private StatisticService statisticService;

	/**
	 * 统计
	 * 
	 * @return
	 */
	@RequestMapping(value = "/computer", method = { RequestMethod.GET })
	public BsmResult computer() {
		return statisticService.compute();
	}

}
